package com.stedu.service;

import com.stedu.bean.Teacher;
import com.stedu.exception.SteduException;

import java.util.List;

public interface TeacherService {
    //分页查询,根据tname查询
    List<Teacher> selectByTname(String tname);
    //增
    boolean insert(Teacher t) throws SteduException;
    //删
    boolean delete(Integer tid) throws SteduException;
    //改
    boolean update(Teacher t) throws SteduException;
    //写课程表的查询所有，用老师一对一去查课程
    List<Teacher> selectAll();
    //根据id查询
    Teacher selectByTid(Integer tid);
}
